package cn.matrix42.potoo.format.markdown.element.text.paragraph;

import java.util.ArrayList;
import java.util.List;

import cn.matrix42.potoo.format.markdown.element.MarkdownElement;

public class Quote extends MarkdownElement {

    private final String content;

    public Quote(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    @Override
    public List<String> toMarkdownStringList() {
        List<String> list = new ArrayList<>();
        list.add(String.format("> %s", content));
        list.add(context.getConfig().getEof());
        return list;
    }
}
